import Vue from 'vue'

import VueRouter from 'vue-router'
import Login from "@/pages/Login";
import Main from "@/pages/Main";


Vue.prototype.$router=router
Vue.use(VueRouter)


const router = new VueRouter(
    {
        mode: "history",
        routes: [
            {
                path: "/",
                component: Login
            },
            {
                path: "/main",
                component: Main
            }
        ]
    }
);



export default router